package cn.xutongxue.gtms.base;

import lombok.Getter;

@Getter
public enum Errors {
    NO_AUTH(403, "权限不足"),
    OPERATION_ERROR(400500, "操作异常"),
    PARAMS_ERROR(400501, "参数错误"),
    NOT_LOGIN_ERROR(400502, "未登录"),
    UNKNOWN_ERROR(500, "服务端异常错误")
    ;

    private final int code;
    private final String message;

    Errors(int code, String message) {
        this.code = code;
        this.message = message;
    }

}
